package com.example.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper {

	private static final String dbname = "albums.db";
	private static final int version = 1;
	public DBHelper(Context context) {
		super(context, dbname, null, version);
	}
	
	@Override
	public void onCreate(SQLiteDatabase db) {
		String sql = "create table albums (id integer primary key autoincrement ,artist varchar(100) ,title varchar(100),img varchar(100))";
		db.execSQL(sql);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
